package com.fsquare.shipping.controller;



//@Controller(value="shippingController")
//@RequestMapping("/shipping")
public class FSquareShippingController {
	
//	@Resource(name = "fsquareShippingService")
//	protected ShippingService shippingService;
//	
//	
//	@RequestMapping(value = "/get", produces = "application/json", method = RequestMethod.GET)
//    @ResponseBody
//    public Map<String, Object> getShipping(HttpServletRequest request, HttpServletResponse response){
//		Map<String, Object> result = new HashMap<String, Object>();
//    	String optionId = request.getParameter("optionId");
//    	FulfillmentOption fulfillmentOption = shippingService.getShippingMethodById(Long.parseLong(optionId));
//    	result.put("fulfillmentOption", fulfillmentOption);
//		return result;
//	}
//	
//	@RequestMapping(value = "/getAll", produces = "application/json", method = RequestMethod.GET)
//    @ResponseBody
//    public Map<String, Object> getAllShipping(HttpServletRequest request, HttpServletResponse response){
//		Map<String, Object> result = new HashMap<String, Object>();
//		List<FulfillmentOption> fulfillmentOptionList = shippingService.getAllShippingMethods();
//		result.put("fulfillmentOptionList", fulfillmentOptionList);
//		return null;
//	}
//	
//	@RequestMapping(value = "/save", produces = "application/json", method = RequestMethod.POST)
//    @ResponseBody
//    public Map<String, Object> saveShipping(HttpServletRequest request, HttpServletResponse response){
//		return null;
//	}
//	
//	@RequestMapping(value = "/delete", produces = "application/json", method = RequestMethod.POST)
//    @ResponseBody
//    public Map<String, Object> deleteShipping(HttpServletRequest request, HttpServletResponse response){
//		return null;
//	}
}
